<div ng-controller="DatasourceController" class="wrapper-md">
  <div class="panel panel-default">
      <div class="panel-heading">
          <h3 class="panel-title">{{body.queryTitle}}</h3>
      </div>
      <div class="panel-body">
          
      </div>
  </div>
  
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">{{body.tableTitle}}</h3>
    </div>
    <div class="panel-body">
      <div class="row">
          <div class="col-md-3">
            <button class="btn btn-success" ng-click="add()">新增</button>
          </div>
      </div>
      <div class="row">
        <div class="table-responsive">
            <table class="table table-striped m-b-none" id="tbl">
              <thead>
              <tr>
                <th class="text-center">
                  <label class="i-checks m-b-none">
                    <input type="checkbox" id="chkAll"><i></i>
                  </label>
                </th>
                <th class="text-center">名称</th>
                <th class="text-center">账号</th>
                <th class="text-center">Driver</th>
<!--                <th class="text-center">Url</th>-->
                <th class="text-center">创建时间</th>
                <th class="text-center">操作</th>
              </tr>
              </thead>
              <tbody class="text-center">
              </tbody>
            </table>
          </div>
      </div>
    </div>
  </div>

  <div class="modal fade" id="add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
          <div class="modal-content">
              <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title">{{form.title}}</h4>
              </div>
              <div class="modal-body">
                  <form class="form-horizontal">
                      <div class="form-group">
                        <label class="col-sm-2 control-label">名称:</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="username" ng-model="form.entity.name">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label">驱动:</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="driver" ng-model="form.entity.driver">
                        </div>
                      </div>
                      <div class="form-group">
                          <label class="col-sm-2 control-label">URL:</label>
                          <div class="col-sm-10">
                              <textarea type="text" class="form-control" placeholder="driver" ng-model="form.entity.url" rows="5">
                              </textarea>
                          </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label">账号:</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="account" ng-model="form.entity.account">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label">密码:</label>
                        <div class="col-sm-10">
                          <input type="password" class="form-control" placeholder="password" ng-model="form.entity.password">
                        </div>
                      </div>
                    </form>
              </div>
              <div class="modal-footer">
                  <button type="button" class="btn btn-success" ng-click="test()">连接测试</button>
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  <button type="button" class="btn btn-primary" ng-click="save()">提交</button>
              </div>
          </div><!-- /.modal-content -->
      </div><!-- /.modal -->
  </div>
</div>
